<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			function calcDay(year,month,day){
				var allDay=0;
				if(year%4==0&&year%400!=0||year%400==0){
					switch(month){
					case 1:
					allDay=day;
					break;
					case 2;
					allDay=31+day;
					break;
					case 3;
					allDay=31+29+day;
					break;
					case 4;
					allDay=31+29+31+day;
					break;
					case 5;
					allDay=31+29+31+30+day;
					break;
					case 6;
					allDay=31+29+31+30+31+day;
					break;
					case 7;
					allDay=31+29+31+30+31+31+day;
					break;
					case 8;
					allDay=31+29+31+30+31+31+31+day;
					break;
					case 9;
					allDay=31+29+31+30+31+31+31+30+day;
					break;
					case 10;
					allDay=31+29+31+30+31+31+31+30+31+day;
					break;
					case 11;
					allDay=31+29+31+30+31+31+31+30+31+30+day;
					break;
					case 12;
					allDay=31+29+31+30+31+31+31+30+31+30+31+day;
					break;
				}else{
					switch(month){
					case 1:
					allDay=day;
					break;
					case 2;
					allDay=31+day;
					break;
					case 3;
					allDay=31+28+day;
					break;
					case 4;
					allDay=31+28+31+day;
					break;
					case 5;
					allDay=31+28+31+30+day;
					break;
					case 6;
					allDay=31+28+31+30+31+day;
					break;
					case 7;
					allDay=31+28+31+30+31+31+day;
					break;
					case 8;
					allDay=31+28+31+30+31+31+31+day;
					break;
					case 9;
					allDay=31+28+31+30+31+31+31+30+day;
					break;
					case 10;
					allDay=31+28+31+30+31+31+31+30+31+day;
					break;
					case 11;
					allDay=31+28+31+30+31+31+31+30+31+30+day;
					break;
					case 12;
					allDay=31+28+31+30+31+31+31+30+31+30+31+day;
					break;
				}
				}
				document.write("2024-4-30是这年的第"+calcDay(2024,4,30)+"天");
				return allDay;
			}
		</script>
	</body>
</html>
